﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using WimaxSimulator.Wimax;

namespace WimaxSimulator.Gui
{
    [Serializable]
    class RelayStationUI:StationUI
    {
        public RelayStationUI(Station r,Image image):base(r,image)
        {
            Initialize();
        }
        public override void Paint(System.Drawing.Graphics g)
        {
            //g.FillEllipse(Brushes.Blue, (float)Station.Location.X, (float)Station.Location.Y, 20, 20);
            ISubordinate s = (ISubordinate)Station;
            if (s.AccessStation != null)
            {
                g.DrawLine(Pens.Black, Station.Location, ((Station)(s.AccessStation)).Location );
            }
            base.Paint(g);
        }
        public override void Initialize()
        {
            base.Initialize();
            this.Brush = Brushes.LightSkyBlue;
            Pen = Pens.LightSkyBlue;
        }
    }
}
